package itheima_edu_info_manager.com.itheima.edu.info.manager.controller;

import itheima_edu_info_manager.com.itheima.edu.info.manager.domain.Student;
import itheima_edu_info_manager.com.itheima.edu.info.manager.service.StudentService;

import java.util.Scanner;

public class StudentController extends BaseStudentController{
    Scanner sc = new Scanner(System.in);
    //将接收到的学生信息，进行封装
    public Student getStudent(String id) {
        System.out.println("请输入姓名：");
        String name = sc.next();
        System.out.println("请输入年龄：");
        String age = sc.next();
        System.out.println("请输入生日：");
        String birthday = sc.next();

        Student student =new Student();
        student.setId(id);
        student.setName(name);
        student.setAge(age);
        student.setBirthday(birthday);
        return student;
    }
}
